package g6.UddiRegistration;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.juddi.v3.client.config.UDDIClerkManager;
import org.apache.juddi.v3.client.transport.Transport;

public class TransportFactory {
	public static Transport getTransport() throws ConfigurationException{
		UDDIClerkManager clerkManager= new UDDIClerkManager("META-INF/uddi.xml");
		clerkManager.start();		
		System.out.println("UDDI Clerk manager started");
		Transport t =  clerkManager.getTransport();
		System.out.println("Transport created");
		return t;
	}
}
